/**  
 * Project Name:framework  
 * File Name:BusinessLogEntity.java  
 * Package Name:com.org.framework.log  
 * Date:2017年8月3日下午2:30:01  
 * Copyright (c) 2017, 123774135@qq.com All Rights Reserved.  
 *  
*/  

/**    
  *@Title: BusinessLogEntity.java  
  *@Package com.org.framework.log  
  *@Description: TODO(用一句话描述该文件做什么)  
  *@author 123774135@qq.com    
  *@date 2017年8月3日 下午2:30:01  
  *@version V1.0    
  */
   
  
package com.bicon.base.data.common.log;

import com.bicon.base.data.common.UUIDGenerator;
import com.bicon.base.data.common.tools.DateUtil;
import com.bicon.base.data.common.tools.JsonUtil;

/**  
 * ClassName:BusinessLogEntity <br/>  
 * Function: TODO ADD FUNCTION. <br/>  
 * Reason:   TODO ADD REASON. <br/>  
 * Date:     2017年8月3日 下午2:30:01 <br/>  
 * @author   Administrator  
 * @version    
 * @since    JDK 1.8  
 * @see        
 */

/**  
  *@ClassName: BusinessLogEntity  
  *@Description: TODO(这里用一句话描述这个类的作用)  
  *@author 123774135@qq.com  
  *@date 2017年8月3日 下午2:30:01      
  */

public class BusinessLogEntity implements java.io.Serializable{
	/**  
	  *@Fields serialVersionUID : TODO(用一句话描述这个变量表示什么)  
	  */   
	
	private static final long serialVersionUID = -609516123626040142L;
 
	private UUIDGenerator uuidgenerator = new UUIDGenerator();
	
    private String id;
    private String  operater;//当前操作
    private String  bus_name ;//业务描述
    private String  befor_hander;//操作前参数
    private String  key;
    private String   result;//操作结果
    private String   reson ;//原因
    private String  datetime;//操作时间
    
    public BusinessLogEntity(String  operater,String  bus_name,String   befor_hander,String key, String   result,String   reson) {
    	this.operater = operater;
    	this.befor_hander = befor_hander;
    	this.result = result;
    	this.reson = reson;
    	this.bus_name = bus_name;
    	this.key = key;
    	this.datetime = DateUtil.now(DateUtil.format1);
    	this.id = uuidgenerator.generate().toString();
    }
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getOperater() {
		return operater;
	}
	public void setOperater(String operater) {
		this.operater = operater;
	}
	public String getBus_name() {
		return bus_name;
	}
	public void setBus_name(String bus_name) {
		this.bus_name = bus_name;
	}
	public String getBefor_hander() {
		return befor_hander;
	}
	public void setBefor_hander(String befor_hander) {
		this.befor_hander = befor_hander;
	}
	
	public String getResult() {
		return result;
	}
	public void setResult(String result) {
		this.result = result;
	}
	public String getReson() {
		return reson;
	}
	public void setReson(String reson) {
		this.reson = reson;
	}
	public String getDatetime() {
		return datetime;
	}
	public void setDatetime(String datetime) {
		this.datetime = datetime;
	}
	
	
	public String getKey() {
		return key;
	}
	public void setKey(String key) {
		this.key = key;
	}
	@Override
	public String toString() {
		return JsonUtil.objectToJson(this);
	}
    
    
	
}
  
